package org.xg.study.pd.model.vo;

import com.alibaba.fastjson.JSONObject;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * @author CMG
 * @version 1.0
 * @className TreeNode
 * @description 规则树节点信息
 * @date 2021/9/14 21:29
 **/
@Data
@AllArgsConstructor
@NoArgsConstructor
public class TreeNode {
    /**
     * 规则树ID
     */
    private Long treeId;
    /**
     * 规则树节点ID
     */
    private Long treeNodeId;
    /**
     * 节点类型：1叶子，2果实
     */
    private Integer nodeType;
    /**
     * 节点值
     */
    private String nodeValue;
    /**
     * 规则key
     */
    private String ruleKey;
    /**
     * 规则描述
     */
    private String ruleDesc;
    /**
     * 节点链路
     */
    private List<TreeNodeLink> treeNodeLinkList;

    @Override
    public String toString() {
        return JSONObject.toJSONString(this);
    }
}
